if(_root.CacheSerpentCacheCorde.hitTest(_root.Meg._x,_root.Meg._y,true) and Key.isDown(key.SPACE) and eval("/Variables:Corde1Coupee") != true and eval("/Variables:ObjetSelect") == 4)
{
tellTarget("/Animatiques")
{
gotoAndStop("CoupeCorde1");
}
}
if(_root.CacheSupport.hitTest(_root.Meg._x,_root.Meg._y,true) and Key.isDown(key.SPACE) and eval("/Variables:SupportOte") != true and eval("/Variables:ObjetSelect") == 5)
{
tellTarget("/Animatiques")
{
gotoAndStop("PousseSupport");
}
}
if(_root.CacheElice.hitTest(_root.Meg._x,_root.Meg._y,true) and key.isDown(key.SPACE) and eval("/Variables:AttacheElice") != true)
{
tellTarget("_root.Animatiques")
{
gotoAndStop("AttacheElice");
}
}
if(_root.CacheElice.hitTest(_root.Meg._x,_root.Meg._y,true) and key.isDown(key.SPACE) and eval("/Variables:AttacheElice") == true and eval("/Variables:BucheAttachee") == true and eval("/Variables:BucheTassee") != true)
{
set("/Variables:BucheTassee",true);
tellTarget("_root.Animatiques")
{
gotoAndStop("TourneElice");
}
}
if(_root.CacheGaz.hitTest(_root.Meg._x,_root.Meg._y,true) and key.isDown(key.SPACE) and eval("/Variables:GazMis") != true and eval("/Variables:ObjetSelect") == 2)
{
set("/Variables:GazMis",true);
tellTarget("_root.Animatiques")
{
gotoAndStop("MetGaz");
}
}
if(_root.CacheGaz.hitTest(_root.Meg._x,_root.Meg._y,true) and key.isDown(key.SPACE) and eval("/Variables:GazMis") == true and eval("/Variables:GazAllume") != true and eval("/Variables:ObjetSelect") == 7)
{
set("/Variables:GazAllume",true);
tellTarget("_root.Fourmis")
{
gotoAndStop(2);
}
tellTarget("_root.Animatiques")
{
gotoAndStop("AllumeGaz");
}
}
if(!Key.isDown(Key.Down) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up) and Idle == false)
{
Idle = true;
tellTarget("_root.Meg/Obj")
{
gotoAndStop("Idle");
play();
}
}
if(Key.isDown(Key.SHIFT))
{
set("/Variables:Run",true);
}
else
{
set("/Variables:Run",false);
}
if(Key.isDown(Key.RIGHT) and !Key.isDown(Key.UP) and !Key.isDown(Key.DOWN))